package com.aaron.clusterquartz.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	private static SimpleDateFormat sdf = null;

	public static String dateToString(Date date) {
		sdf = new SimpleDateFormat();
		String stringDate = sdf.format(date);
		return stringDate;
	}

	public static String dateToString(Date date, String pattern) {
		sdf = new SimpleDateFormat(pattern);
		return sdf.format(date);
	}

}
